package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-activity")
public interface SeckillGoodsFeignClient {

    //查询秒杀列表
    @GetMapping("/api/activity/seckill/list")
    public List<SeckillGoods> list();
    //秒杀详情页面
    @GetMapping("/api/activity/seckill/{skuId}")
    public SeckillGoods getSeckillGoods(@PathVariable Long skuId);
}
